//导入axios
import instance from "@/utils/request";

//1.分页查询分类
export function getCategoryPageList(data) {
  return instance.post("/admin/category/list", data)
}

//2.新增分类
export function submmitAddCategory(data) {
  return instance.post("/admin/category/add", data)
}
//3.删除分类
export function deleteCategory(id) {
  return instance.post("/admin/category/delete", {
    id: id
  })
}